package com.ruicar.afs.jobadmin.mapper;

import com.ruicar.afs.jobadmin.core.model.AfsJobLogGlue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The type AfsJobLogGlueMapper
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.06.13 14:17:12
 * @since 1.0
 */
@Mapper
public interface AfsJobLogGlueMapper {

    /**
     * Save int
     *
     * @param afsJobLogGlue afs job log glue
     * @return the int
     */
    public int save(AfsJobLogGlue afsJobLogGlue);

    /**
     * Find by job id list
     *
     * @param jobId job id
     * @return the list
     */
    public List<AfsJobLogGlue> findByJobId(@Param("jobId") int jobId);

    /**
     * Remove old int
     *
     * @param jobId job id
     * @param limit limit
     * @return the int
     */
    public int removeOld(@Param("jobId") int jobId, @Param("limit") int limit);

    /**
     * Delete by job id int
     *
     * @param jobId job id
     * @return the int
     */
    public int deleteByJobId(@Param("jobId") int jobId);

}
